import request from '../utils/request'

export function build(params) {
  return request({
    url: '/member/order/build',
    method: 'get',
    params: params
  })
}

export function create(data,params) {
  return request({
    url: '/member/order/create',
    data: data,
    method: 'POST',
    params: params
  })
}

export function list(params) {
  return request({
    url: '/member/order/list',
    method: 'get',
    params: params
  })
}
export function orderSummaryList(params) {
  return request({
    url: '/member/order/orderSummaryList',
    method: 'get',
    params: params
  })
}

export function orderSummaryListV2(params) {
  return request({
    url: '/member/order/orderSummaryListV2',
    method: 'get',
    params: params
  })
}

export function orderList(params) {
  return request({
    url: '/member/order/orderList',
    method: 'get',
    params: params
  })
}

export function find(id) {
  return request({
    url: '/member/order/find/' + id,
    method: 'get'
  })
}

export function cancel(id) {
  return request({
    url: '/member/order/cancel/' + id,
    method: 'post'
  })
}

export function returns(data, id) {
  return request({
    url: '/member/order/returns/' + id,
    method: 'post',
    data: data
  })
}


export function received(id) {
  return request({
    url: '/member/order/received/' + id,
    method: 'post'
  })
}

export function reminder(id) {
  return request({
    url: '/member/order/reminder/' + id,
    method: 'post'
  })
}

export function calculate(data) {
  return request({
    url: '/member/order/calculate',
    method: 'post',
    data: data
  })
}

export function payment(id,params) {
  return request({
    url: '/member/order/payment/' + id,
    method: 'post',
    params:params
  })
}


export function del(id) {
  return request({
    url: '/member/order/del/'+ id,
    method: 'post'
  })
}


export function summary() {
  return request({
    url: '/member/order/summary',
    method: 'post'
  })
}

export function check_shipping(data,params){
  return request({
    url:'/member/order/check_shipping',
    method:'post',
    data:data,
    params: params
  })
}

export function pickup_qrcode(params) {
  return request({
    url: '/member/order/pickup_qrcode',
    method: 'get',
    params:params
  })
}

export function orderPayment(params) {
  return request({
    url: '/member/order/orderPayment',
    method: 'get',
    params:params
  })
}
export function temporaryStorage(params) {
  return request({
    url: '/member/order/temporaryStorage',
    method: 'get',
    params:params
  })
}

export function agentOrderList(params) {
  return request({
    url: '/member/order/agentOrderList',
    method: 'get',
    params: params
  })
}

export function paymentByWarehourse(params) {
  return request({
    url: '/member/order/paymentByWarehourse',
    method: 'get',
    params: params
  })
}

export function hitCount(params){
  return request({
    url:'/member/order/hitCount',
    method:'get',
    params:params
  })
}

export function invoice(params) {
  return request({
    url: '/member/order/invoice',
    method: 'get',
    params: params
  })
}

export function callLast(params) {
  return request({
    url: '/member/order/callLast',
    method: 'get',
    params: params
  })
}

export function checkOpenBusinessView(params) {
  return request({
    url: '/member/order/openBusinessView',
    method: 'get',
    params: params
  })
}

export function queryShippingStatus(params) {
  return request({
    url: '/member/order/queryShippingStatus',
    method: 'get',
    params: params
  })
}

export function getOrderId(params) {
  return request({
    url: '/member/order/getOrderId',
    method: 'post',
    params: params
  })
}


